package com.medical.server.stock.service.impl;

import com.laozj.common.utils.PageUtils;
import com.laozj.common.utils.Query;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.medical.server.stock.dao.PurchasePlanDao;
import com.medical.server.stock.entity.PurchasePlanEntity;
import com.medical.server.stock.service.PurchasePlanService;


@Service("purchasePlanService")
public class PurchasePlanServiceImpl extends ServiceImpl<PurchasePlanDao, PurchasePlanEntity> implements PurchasePlanService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<PurchasePlanEntity> page = this.page(
                new Query<PurchasePlanEntity>().getPage(params),
                new QueryWrapper<PurchasePlanEntity>()
        );

        return new PageUtils(page);
    }

}